<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>SINOLINES BOOKING CONFIRMATION</title>
    <style>
        body {
            font-family: 'simsun','verdana', 'arial', 'angsau',sans-serif;
            margin: 0;
            padding: 0;
        }

        /*margin: 0 auto;*/
        .container {
            width: 95%;
            max-width: 1000px;
            margin-left: 20px;
            margin-right: 20px;
            border: 1px solid #333;
            /*padding: 0;*/
            line-height: 1;
            box-sizing: border-box;
        }

        .info-table {
            width: 100%;
            border-collapse: collapse;
            /*margin-bottom: 5px;*/
            font-size: 11px;
            line-height: 1;
            border: 1px solid #333;
        }

        .info-table td, .info-table th {
            border: 1px solid #333;
            /*padding: 6px 8px;*/
            line-height: 1;
            vertical-align: top;
        }

        .info-table tr:first-child th, .info-table tr:first-child td {
            border-top: none;
            line-height: 1;
        }

        .info-table tr:last-child th, .info-table tr:last-child td {
            border-bottom: none;line-height: 1;
        }

        .info-table th:first-child, .info-table td:first-child {
            border-left: none;line-height: 1;
        }

        .info-table th:last-child, .info-table td:last-child {
            border-right: none;line-height: 1;
        }

        .info-table th {
            background-color: #e6e6e6;
            font-weight: bold;
            text-align: left;
            color: #2c3e50;
        }
    </style>
</head>
<body>
<div class="container">
    <table>
        <tr>
            <td style="width: 33.33%"><img th:src="@{classpath:pdf/img/banner.jpg}" alt="SINOLINES Logo"/></td>
            <td style="width: 66.67%; text-align: center;">
                <h2 style=""><strong><span th:text="${title}"></span></strong></h2>
                <p style=""><strong><span th:text="${companyName}"></span></strong></p>
                <p style="color: red;"><span th:text="${contactInfo}"></span></p></td>
        </tr>
    </table>

    <table class="info-table">
        <tr>
            <td>
                <table style="border:none;width: 100%; line-height: 1;">
                    <tr>
                        <td colspan="2" style="border:none;">
                            <div><strong>Booking No.:</strong> <span th:text="${bookingNo}"></span></div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="border:none;">
                            <div><strong>Customer Order No.:</strong> <span th:text="${refNo}"></span></div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="1" style="border:none;">
                            <div><strong>Booking Status:</strong> <span th:text="${bookingStatus}"></span></div>
                        </td>
                        <td colspan="1" style="border:none;">
                            <div><strong>Carrier Code:</strong> <span th:text="${carrierCode}"></span></div>
                        </td>
                    </tr>
                </table>
            </td>
<!--            <td style="width: 66.67%">-->
<!--                <table style="border:none;width: 100%; line-height: 1;">-->
<!--                    <tr>-->
<!--                        <td style="border:none;width: 100%; line-height: 1;">-->
<!--                            <div><strong>Booking No.:</strong> <span th:text="${bookingNo}"></span></div>-->
<!--                        </td>-->
<!--                    </tr>-->
<!--                    <tr>-->
<!--                        <td style="border:none;width: 100%; line-height: 1;">-->
<!--                            <div><strong>Customer Order No.:</strong> <span th:text="${refNo}"></span></div>-->
<!--                        </td>-->
<!--                    </tr>-->
<!--                    <tr>-->
<!--                        <td style="width: 50%;border:none;">-->
<!--                            <div><strong>Booking Status:</strong> <span th:text="${bookingStatus}"></span></div>-->
<!--                        </td>-->
<!--                        <td style="width: 50%;border:none;">-->
<!--                            <div><strong>Carrier Code:</strong> <span th:text="${carrierCode}"></span></div>-->
<!--                        </td>-->
<!--                    </tr>-->
<!--                </table>-->
<!--            </td>-->
            <td>
                <table style="width: 100%">
                    <tr>
                        <td>
                            <div><strong>Date of Issue:</strong> <span th:text="${dateOfIssue}"></span></div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div><strong>Contract No.(S/C No.):</strong> <span th:text="${contractNo}"></span></div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div><strong>Service Mode:</strong> <span th:text="${serviceMode}"></span></div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <div style="text-align: center; font-size: 12px; vertical-align: middle;margin-bottom: 3px;"><strong>Client Information</strong></div>
    <table class="info-table">
        <tr>
            <td style="width: 33.33%"><strong>Booking Party:</strong> <span th:text="${bookingParty}"></span></td>
            <td style="width: 33.33%"><strong>Shipper:</strong> <span th:text="${shipper}"></span></td>
            <td style="width: 33.34%"><strong>Forwarder:</strong> <span th:text="${forwarder}"></span></td>
        </tr>
    </table>

    <div style="text-align: center; font-size: 12px; vertical-align: middle;margin-bottom: 3px;"><strong>Routing <![CDATA[&]]> Schedule</strong></div>
    <table class="info-table">
        <tr>
            <td style="width: 33.34%">
                <div><strong>Port of Receipt:</strong> <br/> <span th:text="${portOfReceipt}"></span></div>
            </td>
            <td style="width: 33.33%">
                <table style="width: 100%; line-height: 1;">
                    <tr style="border:none;">
                        <td style="border:none;">
                            <div><strong>Port of Loading:</strong> <br/><span th:text="${portOfLoading}"></span></div>
                        </td>
                    </tr>
                    <tr style="border:none;">
                        <td style="border:none;">
                            <div><strong>ETD:</strong> <span th:text="${etd}"></span></div>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 33.33%">
                <div><strong>Intended Vessel <![CDATA[&]]> Voy:</strong> <br/> <span th:text="${vesselVoy}"></span></div>
            </td>
        </tr>

        <tr>
            <td style="width: 33.34%">
                <div><strong>Port of Delivery:</strong> <br/> <span th:text="${portOfDelivery}"></span></div>
            </td>
            <td style="width: 33.33%">
                <table style="width: 100%">
                    <tr style="border:none;">
                        <td style="border:none;">
                            <div><strong>Port of Discharge:</strong> <br/> <span th:text="${portOfDischarge}"></span></div>
                        </td>
                    </tr>
                    <tr style="border:none;">
                        <td style="border:none;">
                            <div><strong>ETA:</strong> <span th:text="${eta}"></span></div>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 33.33%">
                <table style="width: 100%">
                    <tr style="border:none;">
                        <td style="border:none;">
                            <div><strong>1st T/S Port:</strong> <br/> <span th:text="${firstTsPort}"></span></div>
                        </td>
                    </tr>
                    <tr style="border:none;">
                        <td style="border:none;">
                            <div><strong>2nd T/S Port:</strong> <br/> <span th:text="${secondTsPort}"></span></div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <div style="text-align: center; font-size: 12px; vertical-align: middle;margin-bottom: 3px;"><strong>Cargo <![CDATA[&]]> Container Details</strong></div>
    <table class="info-table">
        <tr>
            <td style="width: 33.33%"><strong>Container Qty <![CDATA[&]]> types:</strong> <br/> <span th:text="${containerQtyTypes}"></span></td>
            <td style="width: 66.34%"><strong>Commodity Name <![CDATA[&]]> HS Code:</strong> <br/> <span th:text="${commodityName}"></span></td>
        </tr>
    </table>

    <div style="text-align: center; font-size: 12px; vertical-align: middle;margin-bottom: 3px;"><strong>Deadlines</strong></div>
    <table class="info-table">
        <tr>
            <td style="width: 33.33%"><strong>Empty Pick up start:</strong> <br/> <span th:text="${emptyPickupStart}"></span></td>
            <td style="width: 33.33%"><strong>CY Open:</strong> <br/><span th:text="${cyOpen}"></span></td>
            <td style="width: 33.34%"><strong>CY Cutoff:</strong> <br/><span th:text="${cyCutoff}"></span></td>
        </tr>
        <tr>
            <td style="width: 33.33%"><strong>SI Cutoff:</strong> <br/> <span th:text="${siCutoff}"></span></td>
            <td style="width: 33.33%"><strong>VGM Cutoff:</strong> <br/> <span th:text="${vgmCutoff}"></span></td>
            <td style="width: 33.34%"></td>
        </tr>
    </table>

    <div style="text-align: center; font-size: 12px; vertical-align: middle;margin-bottom: 3px;"><strong>Container Handling</strong></div>
    <table class="info-table">
        <tr>
            <td style="width: 33.33%"><strong>Pickup Location:</strong> <br/> <span th:text="${pickupLocation}"></span></td>
            <td style="width: 33.33%"><strong>Return CY Location:</strong> <br/> <span th:text="${returnCyLocation}"></span></td>
            <td style="width: 33.34%"><strong>Paperless code:</strong> <br/> <span th:text="${paperlessCode}"></span></td>
        </tr>
        <tr>
            <td colspan="3"><strong>Port-Specific Remarks:</strong> <span th:text="${portSpecificRemarks}"></span></td>
        </tr>
    </table>

    <div style="text-align: center; font-size: 12px; margin-bottom: 3px;">免责条款</div>
    <table class="info-table">
        <tr>
            <td style="width: 100%; height: 70px;"></td>
        </tr>
    </table>
</div>
</body>
</html>